home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODF-Interest Archive / September 96 / Re Using QuickDrawGX in ODF < prev    next >
Encoding:
Internet Message Format  |  1996-09-19  |  1.6 KB  |  [TEXT/ttxt]

  1. Subject:     Re: Using QuickDrawGX in ODF
  2. Sent:        9/1/96 11:05 AM
  3. Received:    9/1/96 11:05 AM
  4. From:        dwilson@best.com (Dave Wilson)
  5. Reply-To:    ODF-Interest@CILabs.ORG
  6. To:          OpenDoc Development Framework Discussion List
  7.  
  8.  
  9. Scott,
  10.  
  11. >I would like to draw text rotated on the Macintosh, and it appears that
  12. >QuickDrawGX is the only way to do so? However, in looking at GX and ODF, it
  13. >appears that if I want to render to the view, a bitmap shape, and other
  14. >such graphics contexts, I must create these contexts myself?
  15.  
  16. In case it helps, you can take a look at my "GraphicsGX" sample in the
  17. Developer University folder that comes with ODF. There I create a
  18. viewContext for ODF drawing in one scope, and then a FW_CGraphicContextGX
  19. in another scope to draw with GX, as indicated below
  20.  
  21.  
  22. void CGraphicsGXFrame::Draw(etc.)
  23. {
  24.         this->MyDrawWithODF(ev, odFacet, invalidShape);
  25.         {
  26.                 FW_CGraphicContextGX gxContext(ev, odFacet, invalidShape);
  27.                 this->MyDrawGXBoxes(ev, gxContext);
  28.                 this->MyDrawGXText(ev, gxContext);
  29.         }
  30. }
  31.  
  32. >
  33. >Are both of my assertions above valid? Is there any easy way to use just
  34. >the text rendering part of GX and still keep using the existing ODF graphic
  35. >contexts? Does anyone know of some easier way to render text characters
  36. >that are rotated (I don't need the connected glyphs of GX, just the
  37. >individual characters)?
  38.  
  39. GX is the only way I know of, and we are encouraged to use it with MacOS8
  40. in the future.
  41.  
  42. -Dave
  43.  
  44. Dave Wilson
  45. Personal Concepts
  46. 635 Wellsbury Way
  47. Palo Alto, CA 94306
  48. voice: 415-494-6763
  49. email: dwilson@best.com